'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 英雄技能
 * @author sundbcn@gmail.com (sun debing)
 */

var _ = require('lodash');
var async = require('async');
var modelUtil = require('../util/modelUtil');
var mongoConnector = require('../libs/mongodb/mongoConnector');
/* jshint unused:false */
var skillSchema = require('../schemas/skillSchema');
var Skill = mongoConnector().model('Skill');

/**
 * 根据角色id获取技能数据
 */
module.exports.getByRoleId = function (role_id, cb) {
    modelUtil.getByRoleId(Skill, role_id, function (err, skill_model) {
        if (!!err) {
            return cb(err);
        }

        cb(null, skill_model);
    });
};
